package com.dragon.logical.service.supplies;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.repository.entity.Warehouse;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 仓库表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-11-13
 */
public interface IWarehouseService extends IService<Warehouse> {

    /**
     * 仓库分页
     * @param page
     * @param limit
     * @param search
     * @return
     */
    Page<Warehouse> warehouseList(Integer page, Integer limit, String search);

    /**
     * 添加
     * @param warehouse
     */
    void addWarehouse(Warehouse warehouse);

    /**
     * 修改
     * @param warehouse
     */
    void updateWarehouse(Warehouse warehouse);

    /**
     * 详情
     * @param id
     * @return
     */
    Warehouse detailById(Integer id);

}
